import cv2
img=cv2.imread('build.png')
cv2.imshow('org_image',img)
img1=img.copy()
for i in range(3):
    img1=cv2.pyrDown(img1)
    cv2.imshow('pyrDown_image'+str(i),img1)
img2=img1.copy()
for i in range(3):
    img1=cv2.pyrUp(img2)
    cv2.imshow('pyrUp_image'+str(i),img2)
cv2.waitKey()
cv2.destroyAllWindows()